$(function() {
        $('form').each(function() {
            $('input').keypress(function(e) {
                // Enter pressed?
                if (e.which == 10 || e.which == 13) {
                    this.form.submit();
                }
            });

            //$('input[type=submit]').hide();
        });
});